﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Contract_Add.aspx.cs" Inherits="Customer_Contract_Add" MasterPageFile="../MasterPage.master" %>
<%@ Import Namespace="Common" %>


<%@ Register src="Customer_Left.ascx" tagname="Customer_Left" tagprefix="uc1" %>


<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <table cellpadding="0" cellspacing="2" width="100%" border="0">
	<tr>
        <td class="leftTd"  valign="top" width="20%">
            <uc1:Customer_Left ID="Customer_Left1" runat="server" />
        </td>
		<td width="85%" valign="top">
		<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
			<tr>
		        <td class="leftTd"  valign="top">
		        <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
		        	<tr>
		            	<td class="titleStyle"><%= WebUtility.GetTitleByMenu(MenuType) %></td>
		            </tr>
		        </table>
		        <br />
		        <table cellpadding="0" cellspacing="1" width="100%" border="0" style="background:#000066;">
	                    <tr>
	                        <td class="leftContent">客户名称：</td>
	                        <td class="RightContent">
                                <asp:HiddenField ID="txt_MUserKey" runat="server" />
	                        <asp:TextBox ID="txt_CustName" runat="server" Width="150px" class="face"></asp:TextBox>
                            <a class="thickbox" href="../Customer/SelectUser.aspx?ParentID=<%= txt_CustName.ClientID %>&ParentID1=<%= txt_MUserKey.ClientID %>&KeepThis=true&TB_iframe=true&height=550&width=800" >选择客户</a>
	                            &nbsp; &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
                                    runat="server" ControlToValidate="txt_CustName" ErrorMessage="请选择客户"></asp:RequiredFieldValidator>
                            </td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">合同类型：</td>
	                        <td class="RightContent">
	                            <asp:DropDownList ID="txt_ContractType" runat="server">
                                    <asp:ListItem Selected="True">请选择</asp:ListItem>
                                    <asp:ListItem>合同类型1</asp:ListItem>
                                    <asp:ListItem>合同类型2</asp:ListItem>
                                </asp:DropDownList>
                            </td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">合同序号：</td>
	                        <td class="RightContent">
	                             <asp:TextBox ID="txt_ContractNO" runat="server" Width="150px" class="face"></asp:TextBox>
	                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" 
                                    runat="server" ControlToValidate="txt_ContractNO" ErrorMessage="请填写合同序号" 
                                    Display="Dynamic"></asp:RequiredFieldValidator>
                            </td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">合同开始日期：</td>
	                        <td class="RightContent">
	                        <asp:TextBox ID="txt_StartDate" runat="server" Width="80px" class="face"></asp:TextBox>
	                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" 
                                    runat="server" ControlToValidate="txt_StartDate" ErrorMessage="请选择开始日期" 
                                    Display="Dynamic"></asp:RequiredFieldValidator>
	                        </td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">合同结束日期：</td>
	                        <td class="RightContent">
	                        <asp:TextBox ID="txt_EndDate" runat="server" Width="80px" class="face"></asp:TextBox>
	                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" 
                                    runat="server" ControlToValidate="txt_EndDate" ErrorMessage="请选择结束日期" 
                                    Display="Dynamic"></asp:RequiredFieldValidator>
	                        </td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">合同金额：</td>
	                        <td class="RightContent">
	                        <asp:TextBox ID="txt_ContractPrice" runat="server" Width="80px" class="face"></asp:TextBox>
	                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                                    runat="server" ControlToValidate="txt_ContractPrice" ErrorMessage="请填写合同金额" 
                                    Display="Dynamic"></asp:RequiredFieldValidator>
	                            <asp:CompareValidator ID="CompareValidator2" runat="server" 
                                    ControlToValidate="txt_ContractPrice" ErrorMessage="单价是大于0的数字" Operator="GreaterThan" 
                                    Type="Currency" ValueToCompare="0"></asp:CompareValidator>
	                        </td>
	                    </tr>
	                     <tr>
	                        <td class="leftContent">付款周期：</td>
	                        <td class="RightContent">
	                        <asp:TextBox ID="txt_PayPeriod" runat="server" Width="150px" class="face"></asp:TextBox>
	                            &nbsp; &nbsp;</td>
	                    </tr>
	                     <tr>
	                        <td class="leftContent">备注：</td>
	                        <td class="RightContent">
	                        <asp:TextBox ID="txt_Remark" runat="server" Width="308px" class="face" Height="64px" 
                                    TextMode="MultiLine"></asp:TextBox>
	                            &nbsp; &nbsp;</td>
	                    </tr>
	                     <tr>
	                        <td class="leftContent" valign="top" style="padding-top:20px;height:30px;"></td>
	                        <td class="RightContent">
                            <asp:Button ID="btnSubmit" runat="server" Text="添 加" CssClass="button" 
                                    onclick="btnSubmit_Click" />
	                        &nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重 置" name="btnReset" class="button"></td>
	                    </tr>
	                </table>
				</td>
		    </tr>
		</table>
        </td>
    </tr>
</table>
</asp:Content>

